package com.fieldchain.ex.fa100.custom.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ScrollView;

import com.fieldchain.ex.fa100.inter.ScrowListener;

/**
 * Created by biyunlong
 * Email: 1225198434@qq.com
 * Data:  2018/9/21
 */
public class MyScrollView extends ScrollView{
    private ScrowListener scrowListener;
    public void setScroViewListener(ScrowListener scrowListener){
        this.scrowListener=scrowListener;
    }
    public MyScrollView(Context context) {
        super(context);
    }

    public MyScrollView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onScrollChanged(int l, int t, int oldl, int oldt) {
        super.onScrollChanged(l, t, oldl, oldt);
        if(scrowListener!=null){
            scrowListener.onScrollChanged(l,t,oldl,oldt);
        }
    }
}
